﻿using System;
using System.ComponentModel;
using System.Runtime.Serialization;

namespace NewsService.MessageBase
{
    /// <summary>
    /// ErrorCode enum
    /// </summary>
    [Flags]
    public enum ErrorCode
    {
        /// <summary>
        /// The user exist
        /// </summary>
        [Description("Exist")]
        [EnumMember]
        Exist = -1,

        /// <summary>
        /// The invalid
        /// </summary>
        [Description("Invalid data")]
        [EnumMember]
        Invalid = -4,

        /// <summary>
        /// The not active
        /// </summary>
        [Description("Not Active")]
        [EnumMember]
        NotActive = -5,

        /// <summary>
        /// The exception
        /// </summary>
        [Description("Error")]
        [EnumMember]
        Exception = -99

    }
}